package com.cm.caseManagement.pojo.entity;
import com.cm.caseManagement.annotation.Excel;
import com.cm.caseManagement.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 会话对象 cm_ai_sessions
 *
 * @author ruoyi
 * @date 2025-10-05
 */
public class CmAiSessions extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 外部唯一id */
    @Excel(name = "外部唯一id")
    private String publicId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 会话标题 */
    @Excel(name = "会话标题")
    private String title;

    /** 会话状态：1-活跃，0-关闭 */
    @Excel(name = "会话状态：1-活跃，0-关闭")
    private String status;

    /** 会话关闭时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "会话关闭时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date closedTime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setPublicId(String publicId)
    {
        this.publicId = publicId;
    }

    public String getPublicId()
    {
        return publicId;
    }

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }

    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }

    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    public void setClosedTime(Date closedTime)
    {
        this.closedTime = closedTime;
    }

    public Date getClosedTime()
    {
        return closedTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("publicId", getPublicId())
            .append("userId", getUserId())
            .append("title", getTitle())
            .append("status", getStatus())
            .append("closedTime", getClosedTime())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
